Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development
Creating and modifying template objects
Always create your own template and palette objects. Do not modify the default template or palette objects. Any changes you make to the default objects might be overwritten by changes Progress makes in future releases.
![]()
To create a template object with the ROM to add a custom object to the New dialog box:
- Create a static SmartDataViewer template.
- Save it as mySmartViewer.w in the
adm2/customdirectory and register it in the Repository.- Open the ROM and type template in the Object Type field.
- Expand the tree view to show the contents of the Template
Objects node.
- Create a new Object using the following values:
Field Value Product MyProduct Product module MyProductModule Object type code SmartViewer Object filename myCustomObjects Layout None (00) Template SmartObject toggle box Selected- Expand the MyCustomObject node, as shown:
![]()
- Create a new Object Instance named mySmartViewer. Specify the Object Type as SmartDataViewer and Object Filename as
myCustomObjects.- Add the following attributes for mySmartViewer:
- (IMPORTANT) Add the new object (MyCustomObjects) to the list of objects defined in your
icfconfigfile for the tagIDETEMPLATESin a comma-delimited format. Alternatively, you can go to the user preferences by selecting the menu option FilePreferences, and then enter the new template object as a comma-delimited list in the Custom Templates field (for example, *,MyCustomObjects).
- Choose Menu
Use Custom from the Object Palette’s menu. The Use Custom dialog box appears. The buttons on the dialog box are disabled when you are working from the Repository and enabled when you are working from the static
.cstfiles.- Choose OK to reload the information from the Repository.
- Choose the New icon on the AppBuilder main window. The MyCustomSmartViewer object is available when the New dialog box appears.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |